package com.example.footballsystem.service;

import com.example.footballsystem.entity.Team;
import com.example.footballsystem.entity.TeamGame;
import com.example.footballsystem.mapper.TeamGameMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class TeamGameService {
    @Autowired
    TeamGameMapper teamGameMapper;
    public Boolean addTeamGame(TeamGame TeamGame){
        return teamGameMapper.addTeamGame(TeamGame);
    }
    public Boolean deleteTeamGame(TeamGame TeamGame){
        return teamGameMapper.deleteTeamGame(TeamGame.getTeamGameID());
    }
    public List<TeamGame> getAllTeamGame(){
        return teamGameMapper.getAllTeamGame();
    }
    public List<TeamGame> getTeamGameByTeamID(int teamID){
        return teamGameMapper.getTeamGameByTeamID(teamID);
    }
}
